package SinglePattern.DoubleLock;

/**
 * @author
 * @create 2018-10-18 12:22
 **/
public class SingleTest {

    public static void main(String[] args) {
        Single single = Single.getInstance();
        Single single1 = Single.getInstance();
        if (single == single1) {
            System.out.println("我们是同一个实例");
        }
        single1.sayHello();

    }
}
